/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package negocio;

import datos.GeneroDB;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author pablo
 */
public class Generos {

    private ArrayList generos = new ArrayList();

    public void listar() {
        try {
            GeneroDB generoDB = new GeneroDB();
            setGeneros(generoDB.listar());
        } catch (SQLException ex) {
            Logger.getLogger(Generos.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public ArrayList getGeneros() {
        return generos;
    }

    public void setGeneros(ArrayList generos) {
        this.generos = generos;
    }

    
}
